<?php echo $this->element('displayHeader'); ?>
<?php echo $ajax->form('CustStockInHead', 'post', array('id' => 'formMain', 'update'=>'content', 'indicator' => 'indicator', 'url'=>array('action'=>'save')));?>
<div class="toolbar">
        <div id="tLeft">
        <?php if ($mode == 'add') : ?>
            <?php echo $this->element('toolbar', array('buttons' => array('save', 'clear', 'back'))); ?>
        <?php else : // mode edit ?>
            <?php echo $this->element('toolbar', array('buttons' => array('save', 'add', 'back'))); ?>
        <?php endif; ?>
    </div>
    <div id="tRight"><?php echo $this->element('neighbors', array('model' => 'CustLocation', 'title' => 'name')); ?></div>
</div>

<td><?php echo $form->input('CustLocation.id'); ?></td>
<fieldset>
    <legend>Location Information</legend>
    <table class="wide">
        <tr>
            <td width="150px"><?php echo $form->label('CustLocation.name') ;?></td>
            <td><?php echo $form->text('CustLocation.name'); ?></td>
        </tr>
    </table>
</fieldset>
<?php echo $form->end(); ?>